<template>
  <van-row>
    <van-row>
      <van-nav-bar title="我的消息">
        <template #right>
          <van-icon name="friends-o" size="28" @click="$router.push('/myfriend')" />
        </template>
      </van-nav-bar>
    </van-row>
    <van-row>
      <session-state></session-state>
    </van-row>
  </van-row>

</template>

<script>
  import sessionState from '../views/msg/chatsessionstate'
  import {
    Button,
    Toast,
    Row,
    Col,
    NavBar,
    Icon
  } from 'vant';
  export default {
    name: 'msg',
    components: {
      'van-button': Button,
      'van-row': Row,
      'van-col': Col,
      'van-nav-bar': NavBar,
      'van-icon': Icon,
      'session-state': sessionState
    },
    data: function () {
      return {

      }
    },
    methods: {

    },
    mounted() {
      //显示底部栏
      this.$store.commit('updateShowFoot', true)
      this.$eventBus.publish('connectionSocket');
       //更改页面底部的状态
      this.$store.commit('updatetTabberActive', 'msg')
    }
  }

</script>
